package cn.lau.auth.service;

import cn.lau.auth.entity.SysUser;
import cn.lau.auth.repository.SysUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserService {

    @Autowired
    private SysUserRepository sysUserRepository;

    public SysUser findByName(String accountName){

        return  sysUserRepository.findByAccountName(accountName);
    }

}
